/*
 * Copyright 2022 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.example.firstdemo.ui.theme

import androidx.compose.material3.Typography
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import com.example.firstdemo.R

private val baseTypography = Typography()
val interFontFamily = FontFamily(
    Font(R.font.inter, FontWeight.Normal), // 正常字重
)
val typographyLight = Typography(
    bodyLarge = baseTypography.bodyLarge.copy(
        fontFamily = interFontFamily,
        fontSize = 16.sp,
        color = textLight.regular
    ),
    bodyMedium = baseTypography.bodyMedium.copy(
        fontFamily = interFontFamily,
        fontSize = 14.sp,
        color = textLight.regular
    ),
    bodySmall = baseTypography.bodySmall.copy(
        fontFamily = interFontFamily,
        fontSize = 12.sp,
        color = textLight.regular
    ),

    titleLarge = baseTypography.titleLarge.copy(
        fontFamily = interFontFamily,
//        fontSize = 24.sp,
        fontSize = 12.sp,
        color = textLight.primary
    ),
    titleMedium = baseTypography.titleMedium.copy(
        fontFamily = interFontFamily,
//        fontSize = 20.sp,
        fontSize = 12.sp,
        color = textLight.primary
    ),
    titleSmall = baseTypography.titleSmall.copy(
        fontFamily = interFontFamily,
//        fontSize = 14.sp,
        fontSize = 14.sp,
        color = textLight.primary
    ),

    labelLarge = baseTypography.labelLarge.copy(
        fontFamily = interFontFamily,
//        fontSize = 16.sp,
        fontSize = 14.sp,
        color = textLight.regular,
        fontWeight = FontWeight.Bold,
    ),
    labelMedium = baseTypography.labelMedium.copy(
        fontFamily = interFontFamily,
//        fontSize = 14.sp,
        fontSize = 14.sp,
        color = textLight.regular,
        fontWeight = FontWeight.Bold,
    ),
    labelSmall = baseTypography.labelSmall.copy(
        fontFamily = interFontFamily,
//        fontSize = 12.sp,
        fontSize = 14.sp,
        color = textLight.regular,
        fontWeight = FontWeight.Bold,
    )
)

val typographyDark = typographyLight.copy()
